﻿using Fee.Orders;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping.Orders.BudgetOrders
{
    public class BudgetOrderMapping : IEntityTypeConfiguration<Fee.Orders.DesignWorkflow.BudgetOrder>
    {
        public void Configure(EntityTypeBuilder<Fee.Orders.DesignWorkflow.BudgetOrder> builder)
        {
            builder.HasBaseType<DelegateOrderBase>();
          
            builder.HasMany(f => f.PlanCosts);
          
        }
    }
}